import { number } from "zod";
import { formatWithThousandsSeparator } from "./number";

export const formatPrice = ({minPrice, price, currency}: {
  minPrice?: number
  price?: number
  currency?: string
}): string => {
  if(minPrice){
    return formatWithThousandsSeparator(Number(minPrice)) + ' ' + (currency || '元') + '起'
  }else{
    return '暂无报价'
  }
};